
#ifndef __parallelH__
#define __parallelH__

#include "thread.h"

/// Parallel initializer - required
#define ParallelInit() \
	unsigned pll_n = 0; \
	WorkItem *pll_ws;

#define ParallelCreateWork(pWs, N)\
	pWs = new WorkItem[N];

/// Parallel for loop - it's not hackery, it's magic :)
#define ParallelFor(For) do { \
	pll_n = 0; for(For) pll_n++; \
	ParallelCreateWork(pll_ws, pll_n)
	

#endif
